package com.wzl.myviewgroup;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.wzl.myviewgroup.keypad.KeypadView;

public class KeypadActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_keypad);

        KeypadView keypad = (KeypadView)this.findViewById(R.id.keypad);
        keypad.setOnKeyClickListener(new KeypadView.OnKeyClickListener() {
            @Override
            public void onNumberClick(int number) {
                Log.d("KeypadActivity","number:"+number);
            }

            @Override
            public void onDeleteClick(String delete) {
                Log.d("KeypadActivity","delete:"+delete);
            }
        });
    }
}